package com.woniuxy.controllers;

import com.woniuxy.producer.OrderProducer;
import com.woniuxy.utils.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;

/**
 * 测试延迟队列
 */
@RestController
public class DemoController {

    @Autowired
    private OrderProducer orderProducer;

    @GetMapping("/demo11")
    public String demo11(){
        Map<String, Integer> map = new HashMap<>();
        map.put("cid", 1);
        map.put("oid", 1);
        orderProducer.send(map);
        ResultVO resultVO = remoteCompanyService.getComplaintsByCid(map);
        return "dwwd";
    }
}
